/**

 @Name：layuiAdmin iframe版全局配置
 @Author：贤心
 @Site：http://www.layui.com/admin/
 @License：LPPL（layui付费产品协议）
    
 */
 
layui.define(['laytpl', 'layer', 'element', 'util'], function(exports){
  exports('setter', {
    container: 'LAY_app' //容器ID
    ,base: layui.cache.base //记录静态资源所在路径
    ,views: layui.cache.base + 'tpl/' //动态模板所在目录
    ,entry: 'index' //默认视图文件名
    ,engine: '.html' //视图文件后缀名
    ,pageTabs: true //是否开启页面选项卡功能。iframe版推荐开启
    
    ,name: 'layuiAdmin'
    ,tableName: 'layuiAdmin' //本地存储表名
    ,MOD_NAME: 'admin' //模块事件名
    
    ,debug: true //是否开启调试模式。如开启，接口异常时会抛出异常 URL 等信息

    //自定义请求字段
    ,request: {
      tokenName: false //自动携带 token 的字段名（如：access_token）。可设置 false 不携带。
    }
    
    //自定义响应字段
    ,response: {
      statusName: 'code' //数据状态的字段名称
      ,statusCode: {
        ok: 0 //数据状态一切正常的状态码
        ,logout: 1001 //登录状态失效的状态码
      }
      ,msgName: 'msg' //状态信息的字段名称
      ,dataName: 'data' //数据详情的字段名称
    }
    
    //扩展的第三方模块
    ,extend: [
      'echarts', //echarts 核心包
      'echartsTheme', //echarts 主题
	  'dtree'
    ]
    
    //主题配置
    ,theme: {
      //内置主题配色方案
      color: [{
    	  main: '#2E404D'
			,logo: '#007a7a'
			,selected: '#2F9688'
			,alias: 'green-1'//绿色-1
		},{
			main: '#2E404D'
			,logo: '#007a7a'
			,selected: '#2F9688'
			,header: '#009999'
			,alias: 'green-2'//绿色-2
		},{
			main: '#006161'
			,logo: '#007a7a'
			,selected: '#2F9688'
			,header: '#009999'
			,alias: 'green-3'//绿色-3
		},{
			main: '#2E404D'
			,logo: '#1461cc'
			,selected: '#1E9FFF'
			,alias: 'blue-1'//蓝色-1
		},{
			main: '#2E404D'
			,logo: '#1461cc'
			,selected: '#1E9FFF'
			,header: '#1979ff'
			,alias: 'blue-2'//蓝色-2
		},{
			main: '#1255b3'
			,logo: '#1461cc'
			,selected: '#1E9FFF'
			,header: '#1979ff'
			,alias: 'blue-3'//蓝色-3
		},{
			main: '#2E404D'
	        ,logo: '#a35229'
	        ,selected: '#F78400'
	        ,alias: 'orange-1' //橙色-1
		},{
			main: '#2E404D'
			,logo: '#a35229'
			,selected: '#F78400'
			,header: '#cc6633'
			,alias: 'orange-2' //橙色-2
		},{
			main: '#8a4522'
			,logo: '#a35229'
			,selected: '#F78400'
			,header: '#cc6633'
			,alias: 'orange-3' //橙色-3
		},{
			main: '#2E404D'
	        ,logo: '#7a0000'
	        ,selected: '#AA3130'
	        ,alias: 'red-1' //红色-1
		},{
			main: '#2E404D'
			,logo: '#7a0000'
			,selected: '#AA3130'
			,header: '#990000'
			,alias: 'red-2' //红色-2
		},{
			main: '#610000'
			,logo: '#7a0000'
			,selected: '#7A4D7B'
			,header: '#990000'
			,alias: 'red-3' //红色-3
		},{
			main: '#2E404D'
			,logo: 'MediumPurple'
			,selected: '#7A4D7B'
			,alias: 'purple-1' //紫色-1
		},{
			main: '#2E404D'
			,logo: 'MediumPurple'
			,selected: '#7A4D7B'
			,header: 'MediumPurple'
			,alias: 'purple-2' //紫色-2
		},{
			main: '#7665a0'
			,logo: 'MediumPurple'
			,selected: '#7A4D7B'
			,header: 'MediumPurple'
			,alias: 'purple-3' //紫色-3
		},{
			main: '#2E404D'
			,logo: '#475466'
			,selected: '#2E404D'
			,alias: 'gray-1' //灰色-1
		},{
			main: '#2E404D'
			,logo: '#475466'
			,selected: '#2E404D'
			,header: '#596980'
			,alias: 'gray-2' //灰色-2
		},{
			main: '#2e404d'
			,logo: '#475466'
			,selected: '#2E404D'
			,header: '#596980'
			,alias: 'gray-3' //灰色-3
		}]
      //初始的颜色索引，对应上面的配色方案数组索引
      //如果本地已经有主题色记录，则以本地记录为优先，除非请求本地数据（localStorage）
      ,initColorIndex: 7
    }
  });
});
